<?php
 
namespace models\entities;
 
/**
 * @Entity(repositoryClass="models\repositories\DivisiRepository")
 * @Table(name="divisi")
 */
class Divisi {
 
/**
 * @Id
 * @Column(name="id",type="integer", length=11, unique=true, nullable=false)
 */
	protected $id;
 
/**
 * @Column(name="nama", type="string", length=45)
 */
	protected $nama;

	/**
 * 
 * @ManyToOne(targetEntity="Departemen")
 * @JoinColumn(name="departemen_id", referencedColumnName="id")
 */
	protected $departemen;
 
 
	public function setId($id)
	{
	    $this->id = $id;
	}
 
	public function getId()
	{
	    return $this->id;
	}

	public function setNama($nama)
	{
	    $this->nama = $nama;
	}
 
	public function getNama()
	{
	    return $this->nama;
	}	

	public function setDepartemen($departemen)
	{
	    $this->departemen = $departemen;
	}
 
	public function getDepartemen()
	{
	    return $this->departemen;
	}
}